import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

/**
 * Created with IntelliJ IDEA.
 * Description:Map和Set的使用
 * User: LianBao
 * Date: 2024-05-10
 * Time: 11:54
 */
public class MapSet {
    public static void main(String[] args) {
        Map<String, Integer> map = new TreeMap<>();
        map.put("张三", 10);
        map.put("张三", 20);//不能重复,此时是更新张三的value
        Set<Map.Entry<String, Integer>> m = map.entrySet();
    }
}
